package net.xi.news.pojo;


import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 评论实体类
 * @author zhangyu
 */
@Data
@TableName(value = "t_comment")
public class Comment {



    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    private String nickname;
    private String email;
    private String content;
    private String avatar;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    private String newsid;
    private String pid;
    @TableField(exist = false)
    private List<Comment> replyComments = new ArrayList<>();


}
